package cn.edu.lcu.cs.javaprogramming.oop.animal;

/**
 * 哺乳动物类，抽象类，不能实例化。
 *
 * @author: ling
 * @since: 2022-03-11 16:07
 **/
public abstract class Mammal extends Animal {

    public Mammal() {
        super();
    }

    @Override
    public void breath() {
        System.out.println(getSpeciesName() + "用肺呼吸");
    }

    @Override
    public void feed() {
        System.out.println(getSpeciesName() + "妈妈用乳汁哺育宝宝");
    }

}
